// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** getCurrentUser GET /api/sysUser/current */
export async function getCurrentUserUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseSysUserVO_>('/api/sysUser/current', {
    method: 'GET',
    ...(options || {}),
  });
}

/** deleteUser POST /api/sysUser/delete */
export async function deleteUserUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/sysUser/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getUserById GET /api/sysUser/get */
export async function getUserByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getUserByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseSysUser_>('/api/sysUser/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getUserVOById GET /api/sysUser/get/vo */
export async function getUserVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getUserVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseSysUserVO_>('/api/sysUser/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listUserByPage POST /api/sysUser/list/page */
export async function listUserByPageUsingPost(
  body: API.SysUserQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageSysUser_>('/api/sysUser/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listUserVOByPage POST /api/sysUser/list/page/vo */
export async function listUserVoByPageUsingPost(
  body: API.SysUserQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageSysUserVO_>('/api/sysUser/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** userLogin POST /api/sysUser/login */
export async function userLoginUsingPost(
  body: API.SysUserLoginRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseSysUser_>('/api/sysUser/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** userLogout POST /api/sysUser/logout */
export async function userLogoutUsingPost(options?: { [key: string]: any }) {
  return request<API.BaseResponseInt_>('/api/sysUser/logout', {
    method: 'POST',
    ...(options || {}),
  });
}

/** userRegister POST /api/sysUser/register */
export async function userRegisterUsingPost(
  body: API.SysUserRegisterRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/sysUser/register', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateUser POST /api/sysUser/update */
export async function updateUserUsingPost(
  body: API.SysUserUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/sysUser/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** userAdd POST /api/sysUser/userAdd */
export async function userAddUsingPost(
  body: API.SysUserAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/sysUser/userAdd', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
